<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>修改客户信息</title>
</head>
<body>
<h1>修改客户信息</h1>
<form method="post" action="docustupdate">
    <input type="hidden" name="cust_id" value="${customer.cust_id}">
    <p>客户名称:<input type="text" name="cust_name" value="${customer.cust_name}"></p>
    <p>负责人id:<input type="text" name="cust_user_id" value="${customer.cust_user_id}"></p>
    <p>创建人id:<input type="text" name="cust_create_id" value="${customer.cust_create_id}"></p>
    <p>客户信息来源:<select name="cust_source">
        <option value="">---请选择---</option>
        <c:forEach items="${list1}" var="a">
            <option value="${a.dict_id}" <c:if test="${customer.cust_source==a.dict_id}">selected</c:if> >${a.dict_item_name}</option>
        </c:forEach>
    </select>
    </p>
    <p>客户所属行业:<select name="cust_industry">
        <option value="">---请选择---</option>
        <c:forEach items="${list2}" var="a">
            <option value="${a.dict_id}" <c:if test="${customer.cust_industry==a.dict_id}">selected</c:if> >${a.dict_item_name}</option>
        </c:forEach>
    </select>
    </p>
    <p>客户级别:<select name="cust_level">
        <option value="">---请选择---</option>
        <c:forEach items="${list3}" var="a">
            <option value="${a.dict_id}" <c:if test="${customer.cust_level==a.dict_id}">selected</c:if> >${a.dict_item_name}</option>
        </c:forEach>
    </select>

    </p>
    <p>联系人:<input type="text" name="cust_linkman" value="${customer.cust_linkman}"></p>
    <p>固定电话:<input type="text" name="cust_phone" value="${customer.cust_phone}"></p>
    <p>移动电话:<input type="text" name="cust_mobile" value="${customer.cust_mobile}"></p>
    <p>邮政编码:<input type="text" name="cust_zipcode" value="${customer.cust_zipcode}"></p>
    <p>联系地址:<input type="text" name="cust_address" value="${customer.cust_address}"></p>

    <input type="submit" value="提交">
</form>
</body>
</html>
